package com.shortchainsystem.common.exception;

import com.shortchainsystem.model.exception.CustomCodeEnum;

/**
 *    自定义异常
 */
public class CustomException extends RuntimeException {

    private CustomCodeEnum customCodeEnum;

    public CustomException(CustomCodeEnum customCodeEnum){
        this.customCodeEnum = customCodeEnum;
    }

    public CustomCodeEnum getAppHttpCodeEnum() {
        return customCodeEnum;
    }
}
